module.exports = {
  devServer: {
    host: "0.0.0.0",
    hot: true,
    port: 7001,
    disableHostCheck: true,
    watchOptions: {
      poll: true
    },
    historyApiFallback: {
      verbose: true,
      rewrites: [
        {
          from: /^\/home/,
          to: "/home.html"
        },
        {
          from: /^\/my/,
          to: "/my.html"
        },
        {
          from: /^\/page/,
          to: "/page.html"
        },
        {
          from: /^\//,
          to: "/home.html"
        },
      ]
    }
  },
  pages: {
    home: "src/pages/home/main.ts",
    my: {
      entry: "src/pages/my/main.ts"
    },
    page: "src/pages/page/main.ts"
  }
};
